package com.yiduo.outpost.core.model.exception;

/**
 * @author yanwen
 */
public class ErrorConstants {

    public static final String ERROR_RESPONSE_PATH = "path";
    public static final String ERROR_RESPONSE_TIMESTAMP = "timestamp";
    public static final String ERROR_RESPONSE_STATUS = "status";
    public static final String ERROR_RESPONSE_MESSAGE = "message";
    public static final String ERROR_RESPONSE_REQUEST_ID = "requestId";
    public static final String ERROR_RESPONSE_REQUEST_CODE = "code";
    public static final String ERROR_RESPONSE_REQUEST_FIELDS = "fields";



    public static final String ERROR_PARAM_INVALID = "error.param.invalid";
    public static final String ERROR_ENTITY_REPEATED = "error.entity.repeated";

    public static final String ERROR_RESULT_NOT_EXIST = "error.result.not.exist";

    public static final String ERROR_PASSWORD_REPEATED = "error.password.repeated";

    public static final String ERROR_PERMISSION_GROUP_PERMISSIONIDS_SIZE = "error.PermissionGroup.permissionIds.size";

    public static final String ERROR_PERMISSION_GROUP_NAME_NOTBLANK = "error.PermissionGroup.name.NotBlank";

    public static final String ERROR_PERMISSION_GROUP_NAME_LENGTH_MAX = "error.PermissionGroup.name.Length.max";
    public static final String ERROR_PERMISSION_GROUP_NAME_PATTERN = "error.PermissionGroup.name.Pattern";
    public static final String ERROR_PERMISSION_GROUP_PERMISSIONIDS_ISNOTNULL = "error.PermissionGroup.permissionIds.isNotNull";
    public static final String ERROR_PERMISSION_GROUP_NAME_EXIST = "error.PermissionGroup.name.already.exist";

    public static final String ERROR_TIMEOUT = "error.timeout";


    // 登录相关
    public static final String ERROR_LOGIN_BAD_CREDENTIALS = "error.login.bad_credentials";     // 登录密码错误
    public static final String ERROR_USER_LOGIN_TIME_OUT = "error.user.login.time.out";         // 登录超时、token过期

    // 用户部门相关异常信息
    public static final String ERROR_USER_NOT_EXIST = "error.user.not.exist";
    public static final String ERROR_USER_EMAIL_NO_REPEAT = "error.user.email.no.repeat";
    public static final String ERROR_USER_PHONE_NO_REPEAT = "error.user.phone.no.repeat";
    public static final String ERROR_USER_EMAIL_NOT_EXIST = "error.user.email.not.exist";
    public static final String ERROR_USER_PHONE_NOT_EXIST = "error.user.phone.not.exist";
    public static final String ERROR_USER_EMAIL_VALID_FORMAT = "error.user.email.valid.format";
    public static final String ERROR_USER_PHONE_VALID_FORMAT = "error.user.phone.valid.format";
    public static final String ERROR_USER_PASSWORD_VALID_FORMAT = "error.user.password.valid.format";
    public static final String ERROR_USER_PASSWORD_IS_EMPTY = "error.user.password.is.empty";
    public static final String ERROR_USER_RAW_PASSWORD_VALID = "error.user.raw.password.valid";
    public static final String ERROR_DEPARTMENT_NOT_EXIST = "error.department.not.exist";
    public static final String ERROR_CURRENT_RESOURCE_DOES_NOT_EXIST = "error.NotFoundException";

    // 客户不存在
    public static final String ERROR_ADVERTISER_ACCOUNT_GROUP_NOT_EXISTS = "error.AdvertiserAccountGroup.not.exists";
    public static final String ERROR_ADVERTISER_ACCOUNT_NOT_EXISTS = "error.AdvertiserAccount.not.exists";

    public static final String ERROR_MESSAGE_WECHAT_USER_NOT_EXISTS = "error.MessageWechatUser.not.exists";

    public static final String ERROR_CONDITION_UPDATE = "error.status.update";

    //短信
    public static final String ERROR_SMS_SIGNATURE_NOT_EXIST = "error.sms.signature.not.exist";
    public static final String ERROR_SMS_SIGNATURE_REPEATED = "error.sms.signature.name.repeated";
    //webhook
    public static final String ERROR_URL_REPEATED = "error.url.repeated";
    public static final String ERROR_WEBHOOK_STATUS_ABNORMAL = "error.webhook.status.abnormal";

    // 微信
    public static final String ERROR_WECHAT_OFFICIAL_ACCOUNT_NOT_EXISTS = "error.payment.wechatOfficialAccount.not.exists";

    // 域名
    public static final String ERROR_DOMAIN_INVALID_FORMAT = "error.domain.invalid.format";

    //落地页
    public static final String ERROR_LANDING_NAME_EMPTY = "error.landing.page.name.empty";
    public static final String ERROR_LANDING_NAME_REPEATED = "error.landing.page.name.repeated";
    public static final String ERROR_LANDING_STRATEGY_NAME_REPEATED = "error.landing.page.strategy.name.repeated";
    public static final String ERROR_LANDING_STRATEGY_CONDITION_TYPE_REPEATED = "error.landing.page.strategy.condition.type.repeated";
    public static final String ERROR_DESIGNER_TEAM_NAME = "error.designer.team.name.repeated";
    public static final String ERROR_LANDING_PAGE_STATUS = "error.landing.page.status.abnormal";
    public static final String ERROR_LANDING_PAGE_NOT_EXISTS = "error.landing.page.not.exists";
    public static final String ERROR_LANDING_PAGE_CHANNEL_NOT_EXISTS = "error.landing.page.channel.not.exists";
    public static final String ERROR_WIDGET_TEMPLATE_IS_USING = "error.widget.template.using";
    public static final String ERROR_WIDGET_TEMPLATE_IS_BINDING = "error.widget.template.binding";
    public static final String ERROR_PAYMENT_ACCOUNT_IS_USING = "error.payment.account.using";
    public static final String ERROR_NAME_LENGTH_MAX = "error.name.length.max";
    public static final String ERROR_TITLE_LENGTH_MAX = "error.title.length.max";
    public static final String ERROR_WIDGET_TEMPLATE_REPEATED = "error.widget.template.name.repeated";
    public static final String ERROR_WIDGET_TEMPLATE_NAME_EMPTY = "error.widget.template.name.empty";

    public static final String ERROR_LANDING_GROUP_NAME_EMPTY = "error.landing.page.group.name.empty";
    public static final String ERROR_LANDING_GROUP_NAME_REPEATED = "error.landing.page.group.name.repeated";
    public static final String ERROR_LANDING_PAGE_WECHAT_CUSTOMER_SERVICE_NAME_REPEATED = "error.landing.page.wechat.customer.service.name.repeated";
    public static final String TEMPLATE_NAME_CANNOT_BE_DUPLICATE = "template.name.cannot.be.duplicate";
    public static final String ERROR_LANDING_PAGE_WECHAT_CUSTOMER_SERVICE_USERID_REPEATED = "error.landing.page.wechat.customer.service.userid.repeated";
    public static final String ERROR_LANDING_PAGE_WECHAT_CUSTOMER_SERVICE_USERID_CAN_NOT_NULL = "error.landing.page.wechat.customer.service.userid.can.not.null";
    public static final String ERROR_LANDING_PAGE_WECHAT_CUSTOMER_SERVICE_WORK_WECHAT_IS_NOT = "error.landing.page.wechat.customer.service.work.wechat.is.not";
    public static final String ERROR_LANDING_PAGE_THIS_PMP_NOT_WORK_WECHAT = "error.landing.page.this.pmp.not.work.wechat";
    public static final String ERROR_LANDING_PAGE_WECHAT_CUSTOMER_SERVICE_IS_NOT_EXIST = "error.landing.page.wechat.customer.service.is.not.exist";
    public static final String ERROR_LANDING_PAGE_WECHAT_CUSTOMER_SERVICE_GROUP_NAME_REPEATED = "error.landing.page.wechat.customer.service.group.name.repeated";
    public static final String ERROR_LANDING_PAGE_WECHAT_CUSTOMER_SERVICE_GROUP_IS_BINDING = "error.landing.page.wechat.customer.service.group.is.binding";
    public static final String ERROR_LANDING_PAGE_CHANNEL_COUNT= "error.landing.page.channel.count";
    public static final String ERROR_LANDING_PAGE_BYTE_APPLET_PAGE_CHANNEL_COUNT_MAX = "error.landingpage.byte.applet.page.channel.count.max";
    public static final String ERROR_LANDING_PAGE_CHANNEL_NAME_ALREADY_EXIST = "error.landing.page.channel.name.already.exist";
    public static final String ERROR_LANDING_PAGE_PARAM_ADVERTISERACCOUNTGROUPID_IS_NOT_NULL = "error.landing.page.param.advertiseraccountgroupid.is.not.null";
    public static final String ERROR_LANDING_PAGE_WECHAT_CUSTOMER_SERVICE_ONLINE_INVALID = "error.landing.page.wechat.customer.service.online.invalid";
    public static final String ERROR_LANDING_PAGE_WECHAT_CUSTOMER_SERVICE_AUTO_RULE_EFFECTIVE = "error.landing.page.wechat.customer.service.auto.rule.effective";
    public static final String ERROR_LANDING_PAGE_GROUP_CHAT_SERVICE_ONLINE_INVALID = "error.landing.page.wechat.group.chat.online.invalid";





    //客资
    public static final String ERROR_CUSTOMER_FILE_EXPORT_FAIL = "error.customer.file.export.fail";

    public static final String ERROR_CUSTOMER_NOT_EXIST = "error.customer.not.exist";

    public static final String ERROR_CUSTOMER_ORDERSTATUS_REFRESH = "error.customer.orderstatus.refresh";

    public static final String ERROR_CUSTOMER_CERTIFICATE_NOT_EXIST = "errot.customer.certificate.not.exist";

    public static final String ERROR_CUSTOMER_REDUND_AMOUNT_WRONG = "error.customer.refund.amount.wrong";

    public static final String ERROR_CUSTOMER_REFUND_NUMBER = "error.customer.refund.number";

    public static final String ERROR_CUSTOMER_REMARKS_EMPTY = "error.customer.remarks.empty";

    public static final String ERROR_CUSTOMER_REFUND_FAIL = "error.customer.refund.fail";

    public static final String ERROR_PAGE_VIEW_INFO_FILE_EXPORT_FAIL = "error.pageviewinfo.file.export.fail";

    //素材库
    public static final String ERROR_MATERIAL_TYPE_NO_REPEAT = "error.materialType.no.repeat";
    public static final String ERROR_MATERIAL_SIGN_NO_REPEAT = "error.materialSign.no.repeat";
    public static final String ERROR_MATERIAL_TEXT_CONTENT_ALREADY_EXIST = "error.materialTextContent.already.exist";

    //ping++支付
    public static final String ERROR_PING_ACCOUNT_NAME_REPEATED = "error.ping.account.name.repeated";
    public static final String ERROR_PING_APPLICATION_NAME_REPEATED = "error.ping.application.name.repeated";

    public static final String ERROR_CUSTOMER_SETTING_CALCULATION_FORMULA = "error.customer.setting.calculation.formula";

    public static final String ERROR_TRACE_ADDRESS_NAME_ALREADY_EXIST = "error.trace.address.name.already.exist";

    public static final String ERROR_PAGEVIEW_EXPORT_LANDINGPAGEID_ISNOTNULL = "error.pageview.export.landingPageId.isNotNull";

    //公共部分
    public static final String ERROR_COMMON_PARAM_NAME_CAN_NOT_BE_REPEATED = "error.common.param.name.can.not.be.repeated";
    public static final String ERROR_COMMON_PARAM_PLATFORMID_UNKNOWN = "error.common.param.platformid.unknown";

    public static final String ERROR_MARKETING_ACCOUNT_USER_ACTIONSET_ID_EXISTS = "error.marketing.account.user.actionset.id.exists";
    public static final String ERROR_BUSINESS_CODE_USER_AXTION_SET_ENABLED = "error.business.code.user.axtion.set.enabled";
    public static final String ERROR_BUSINESS_CODE_MARKETING_ACCOUNT_WECHAT_APP_ID_INCORRECT = "error.business.code.marketing.account.wechat.app.id.incorrect";

    /* 上报策略 */
    public static final String ERROR_UPLOAD_STRATEGY_NAME_REPEATED = "error.upload.strategy.name.repeated";

    /**
     * 小程序加粉及上报
     **/
    public static final String ERROR_NOT_HAVE_CAN_USE_WECHAT_APPLET_CONFIG = "error.not.have.can.use.wechat.applet.config";
    public static final String ERROR_GET_WECHAT_APPLET_PREVIEW_QR_CODE_IMAGE_ERROR = "error.get.wechat.applet.preview.qr.code.image.error";
    public static final String ERROR_LANDING_PAGE_DOUYIN_APPLET_NOT_EXIST = "error.landing.page.douyin.applet.not.exist";
    public static final String ERROR_LANDING_PAGE_WECHAT_APPLET_CONFIG_GET_ACCESS_TOKEN = "error.landing.page.wechat.applet.config.get.access.token";
    public static final String ERROR_LANDING_PAGE_WECHAT_APPLET_CONFIG_GENERATE_SCHEME = "error.landing.page.wechat.applet.config.generate.scheme";
    public static final String ERROR_LANDING_PAGE_WECHAT_APPLET_CONFIG_SCHEME_GENERATION_FREQUENCY_IS_TOO_FAST = "error.landing.page.wechat.applet.config.scheme.generation.frequency.is.too.fast";
    public static final String ERROR_LANDING_PAGE_WECHAT_APPLET_CONFIG_SCHEME_ACCESS_LIMIT_EXCEEDED = "error.landing.page.wechat.applet.config.scheme.generation.access.limit.exceeded";
    //已绑定过开放平台
    public static final String ERROR_LANDING_PAGE_WECHAT_OPEN_BIND_ALREADY = "error.landing.page.wechat.open.bind-already";

    //企业微信代开发应用
    public static final String ERROR_LANDING_PAGE_ENTERPRISE_WECHAT_DEVELOP_ALREADY_EXIST = "error.landing.page.enterprise.wechat.develop.already.exist";

    //企业微信代开发应用授权 校验
    public static final String ERROR_LANDING_PAGE_ENTERPRISE_WECHAT_DEVELOP_QIYETUI_CORPID_NOEQUAL = "error.landing.page.enterprise.wechat.develop.qiyetui.corpid.noequal";

    // 文件上传失败
    public static final String FILE_TYPE_ERROR = "error.FileUpload.dataFormat.err";

    //新浪微博
    public static final String ERROR_SINA_WEIBO_AUTH_ACCOUNTINSUFFICIENT_PERMISSIONS = "error.sina.weibo.auth.accountinsufficient.permissions";
    //aip 用 校验验证码是否正确
    public static final String ERROR_VCODE_EXCEPTION = "error.submit.aip.exam.vcode.err";


    public static final String ERROR_THIS_PMP_HAS_WORK_WECHAT_INFO_DO_NOT_DELETE_REL = "error.this.pmp.has.work.wechat.info.do.not.delete.rel";

    public static final String CITY_AREA_CODE_NAME_NOT_BLANK = "error.CityCodeDetail.name.notBlack";
    public static final String CITY_AREA_CODE_GROUP_ID_NOT_BLANK = "error.CityCodeDetail.advertiserAccountGroupId.notBlack";

    public static final String CITY_AREA_CODE_NOT_EXIST = "error.CityCodeDetail.notExist";
    /**
     * 城市区域码与之绑定异常
     */
    public static final String ERROR_CITY_AREA_CODE_WECHAT_CUSTOMER_SERVICE_GROUP_IS_BINDING = "error.CityCode.wechat.customer.service.group.is.binding";

    /**
     * 城市区域码与落地页之绑定异常
     */
    public static final String ERROR_CITY_AREA_CODE_WECHAT_CUSTOMER_LANDING_PAGE= "error.CityCode.landing.page.is.binding";
    public static final String ERROR_SENTINEL_EXCEPTION = "error.sentinel.message";

    public static final String WARING_SYSTEM_BACK_IS_UPLOADED_WORK_WECHAT_TAGS_AFTERWARDS_SIX_SECOND_TRY = "the.enterprise.wechat.tag.library.has.changed.please.refresh.the.page.and.reconfigure";

    /**
     * 获客链接参数错误
     */
    public static final String ERROR_CUSTOMER_ACQUISITION_PARAM = "error.customer.acquisition.param";

    /**
     * 获客链接为空
     */
    public static final String WECHAT_CUSTOMER_ACQUISITION_LINK_EMPTY = "error.wechat.customer.acquisition.link.empty";
}
